package com.igeek.boot.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.time.LocalDateTime;

/**
 * @package com.igeek.boot.controller
 * @Description
 * @Author LittlePunk [296526219@qq.ccom]
 * @Version 2022.1
 * @Date 2023/12/6 10:51
 */
@RestController
@Slf4j
public class HelloController {

    @GetMapping("hello")
    public String hello(){
        try{
            //int i = 10/0;
            log.info("结果正常："+ LocalDateTime.now());
        }catch(Exception e){
            e.printStackTrace();
            log.error("结果异常："+e.getMessage());
        }
        return "HelloController";
    }
}
